import sys
import re

if __name__ == '__main__':
    interface_name = sys.argv[1]
    if interface_name:
        with open('1.txt', 'r', encoding='utf-8') as file:
            file_data = file.read()
            pattern = '(%s[\\w\\W]*?(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}/\d+|Unknow))+?'%interface_name
            # print(pattern)
            # regex = re.compile(pattern)
            # findall = regex.findall(file_data)
            findall = re.search(pattern, file_data)
            print(findall.group(2))
